#include<sqlite3.h>
#include<stdio.h>
//-lsqlite3


int main()
{
    sqlite3 *db;
    int ret = sqlite3_open("test.db",&db);
    if(ret!=SQLITE_OK)
    {
        printf("open error:%s\n",sqlite3_errmsg(db));
    }

    printf("open sqlite3 success!\n");
    sqlite3_close(db);
    return 0;
}